package com.wxb.service.impl;

import com.wxb.domain.MallRelatedGoodsEntity;
import com.wxb.mapper.MallRelatedGoodsMapper;
import com.wxb.service.IMallRelatedGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 14:32
 * @Version 1.0
 * @Description
 * @ClassName MallRelatedGoodsServiceIMpl
 **/
@Service
public class MallRelatedGoodsServiceIMpl implements IMallRelatedGoodsService {
    @Autowired
    private MallRelatedGoodsMapper relatedGoodsDao;


    public MallRelatedGoodsEntity queryObject(Integer id) {
        return relatedGoodsDao.queryObject(id);
    }


    public List<MallRelatedGoodsEntity> queryList(Map<String, Object> map) {
        return relatedGoodsDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return relatedGoodsDao.queryTotal(map);
    }

    public int queryhasPicTotal(Map<String, Object> map) {
        return relatedGoodsDao.queryTotal(map);
    }

    public int save(MallRelatedGoodsEntity comment) {
        return relatedGoodsDao.save(comment);
    }


    public void update(MallRelatedGoodsEntity comment) {
        relatedGoodsDao.update(comment);
    }


    public void delete(Integer id) {
        relatedGoodsDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        relatedGoodsDao.deleteBatch(ids);
    }
}
